package com.itheima2;



public class Work04 {
    public static void main(String[] args){
int num = number(10);
        System.out.println(num);
    }
    public static int number(int n){
        if (n==1){
            return 1;
        }
        return number(n-1)*n;
    }
}
